package chat.ourGamePackage;

import java.awt.Rectangle;

public class Entity
{
	int x,y,speed,width,height;
	boolean up,down,left,right,stop,collision;
	
	public Entity(int x, int y)
	{
		this.x = x;
		this.y = y;
		speed = 3;
		width = 100;
		height = 100;
		up = false;
		down = false;
		left = false;
		right = false;
		collision = false;
	}
	
	public int getX()
	{
		return this.x;
	}
    
    public int getY()
    {
        return this.y;
    }
    
    public int getWidth()
    {
        return this.width;
    }
    
    public int getHeight()
    {
        return this.height;
    }
    
    public Rectangle getBounds()
    {
    	return new Rectangle(getX(), getY(), getWidth(), getHeight());
    }
    
    public void move()
    {
    	if(up)
    	{
    		y -= speed;
    	}
    	
    	if(down)
    	{
    		y+= speed;
    	}
    	
    	if(left)
    	{
    		x -= speed;
    	}
    	
    	if(right)
    	{
    		x += speed;
    	}
    }
}
